package com.tidemark.util;

import com.tidemark.Stock;

/**
 * utility class
 *
 */
public class ResultTable {
	
	//TODO remove public, use getter/setter 
    public Stock[] table;
    
    public ResultTable(int size){
    	if(size <= 0){
    		throw new IllegalArgumentException("ResultTable size must be positive!");
    	}
        table = new Stock[size];
        for(int i=0;i<size;i++){
        	table[i] = new Stock();
        }
    }
//    //TODO enable getter/setter	   
//    public Stock getStock(int i){
//    	if(i<table.length){
//    		return table[i];
//    	}else{
//    		throw new IllegalArgumentException("array out of bounds");
//    	}
//    }
}
